home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 428_02 / libsrc / showcurs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-13  |  399 b   |  25 lines

  1. /*
  2. ** hidecurs.c
  3. **
  4. ** Pictor, Version 1.51, Copyright (c) 1992-94 SoftCircuits
  5. ** Redistributed by permission.
  6. */
  7.  
  8. #include "pictor.h"
  9.  
  10. /*
  11. ** Hides or restores the text cursor as specified by show.
  12. */
  13. void showcurs(int show)
  14. {
  15.     int curstype;
  16.  
  17.     curstype = getcurstype();
  18.  
  19.     if(show)
  20.         setcurstype(curstype & ~0x2000);
  21.     else
  22.         setcurstype(curstype | 0x2000);
  23.  
  24. } /* showcurs */
  25.